Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Displaying Raw • View renderedDownload


docs/agents/conventions/tests.md d23b169b412be2edf42f9089aaa63ff3bd40ec3f (d23b169b) Text, 581 B

Tc9d1d9# Test conventions

Applies when editing Ta5d6ff`tests/**/*.{py,js}`.

Tff7b72- Backend: Ta5d6ff`tests/backend/test_*.py` with pytest + asyncio auto mode.
Tff7b72- Frontend: Ta5d6ff`tests/frontend/*.test.js` with vitest + Ta5d6ff`@vue/test-utils`.
Tff7b72- Mock Ta5d6ff`window.api` for page tests. Assert toasts when outcomes are user-visible.
Tff7b72- Prefer focused files over full suite unless the user asks for broad runs.
Tff7b72- Landlock tests that apply the sandbox must run in a subprocess (one restrict per process).
Tff7b72- Long-running / notification soak suites can hang. Prefer timeouts and avoid piping pytest through Ta5d6ff`tail` in agent shells.


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────